package com.emip.pojo;

import java.util.ArrayList;
import java.util.List;


public class Table<E> {

	private Long total;
	private int page;
	private Long records;
	private List<E> rows;
	
	public Table() {
		this.rows = new ArrayList<E>();
	}
	
	public Table(Long total, int page, Long records) {
		this.rows = new ArrayList<E>();
		this.total = total;
		this.page = page;
		this.records = records;
	}
	
	//for simple array or object
	public void addRow(E row) {
		this.rows.add(row);
	}
	
	
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public long getRecords() {
		return records;
	}
	public void setRecords(long records) {
		this.records = records;
	}

	public List<E> getRows() {
		return rows;
	}

	public void setRows(List<E> rows) {
		this.rows = rows;
	}
	
}
